package ioc06;

import ioc02.entity.User;
import ioc06.controller.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Author：汤小洋
 * Date：2023-08-11 9:45
 * Description：<描述>
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("ioc06/spring.xml");
        System.out.println(ac.getBean("springBean") == ac.getBean("springBean"));

        // UserController userController = (UserController) ac.getBean("userController");
        // System.out.println(userController);
    }
}
